
const doSomething = () => console.log('测试')
const measureDoingSomething = () => {
    console.time('doSomething()')
    //做点事，并测量所需的时间。
    doSomething()
    console.timeEnd('doSomething()')
}
measureDoingSomething()

const function2 = () => console.trace()
const function1 = () => function2()
function1()

// https://gist.github.com/iamnewton/8754917
console.log('\x1b[33m%s\x1b[0m', '你好')